package com.gxa.zhonglong.service;

import com.gxa.zhonglong.pojo.Inventory;
import com.gxa.zhonglong.pojo.WarehouseWarrant;
import com.gxa.zhonglong.pojo.Where;

import java.util.List;
import java.util.Map;

/**
 * @author asus
 */
public interface InventoryService {

    /**
     * 添加入库的方法
     * @param /实体类Inventory
     */
    void insertInventory(Inventory inventory);

    /**
     * 根据单据编号查询
     * @param receiptNumber
     * @return
     */
    List<Map<String,Object>> selectByReceiptNumberInventory(String receiptNumber);


    /**
     * 根据条件进行联合查询
     * @param  /receiptNumber
     * @return
     */
    List<Map<String,Object>> selectByWhere(Where where);


    /**
     * 根据条件进行联合查询
     * @param  /receiptNumber
     * @return
     */
    List<Map<String, Object>> selectByWhereNoPage(Where where);

    /**
     * 更新入库表Inventory
     * @param /Inventory 更新的参数作为对象
     */
    void updateByReceiptNumber(Inventory inventory);


    /**
     * 根据单据编号查询goods表的部分字段
     * @param receiptNumber 单据编号
     * @return 集合
     */
    List<Map<String,Object>> selectByReceiptNumberGoods(String receiptNumber);


    /**
     * 根据单据编号删除入库表的记录
     * @param receiptNumber 商品编号
     */
    void deleteByReceiptNumberInventory(String receiptNumber);



}
